Skip to content

Commit

Permalink
Remove unused code.
Browse files Browse the repository at this point in the history
  • Loading branch information
shogo4405 committed Sep 10, 2023
1 parent e926a26 commit 2513a60
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 81 deletions.
49 changes: 0 additions & 49 deletions Examples/iOS/Assets.xcassets/BrandAsset.launchimage/Contents.json

This file was deleted.

6 changes: 3 additions & 3 deletions Examples/iOS/Assets.xcassets/Contents.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"info" : {
"version" : 1,
"author" : "xcode"
"author" : "xcode",
"version" : 1
}
}
}
34 changes: 34 additions & 0 deletions HaishinKit.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,10 @@
BC570B4828E9ACC10098A12C /* IOUnit.swift in Sources */ = {isa = PBXBuildFile; fileRef = BC570B4728E9ACC10098A12C /* IOUnit.swift */; };
BC6FC91E29609A6800A746EE /* ShapeFactory.swift in Sources */ = {isa = PBXBuildFile; fileRef = BC6FC91D29609A6800A746EE /* ShapeFactory.swift */; };
BC6FC9222961B3D800A746EE /* vImage_CGImageFormat+Extension.swift in Sources */ = {isa = PBXBuildFile; fileRef = BC6FC9212961B3D800A746EE /* vImage_CGImageFormat+Extension.swift */; };
BC701F332AAD808F00C4BEFE /* SRTHaishinKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BCCC45962AA289FA0016EFE8 /* SRTHaishinKit.framework */; };
BC701F342AAD808F00C4BEFE /* SRTHaishinKit.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = BCCC45962AA289FA0016EFE8 /* SRTHaishinKit.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
BC701F372AAD809D00C4BEFE /* SRTHaishinKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BCCC45962AA289FA0016EFE8 /* SRTHaishinKit.framework */; };
BC701F382AAD809D00C4BEFE /* SRTHaishinKit.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = BCCC45962AA289FA0016EFE8 /* SRTHaishinKit.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
BC72EF1025F24DF80068F040 /* Logboard.xcframework in Frameworks */ = {isa = PBXBuildFile; fileRef = BC34DFD125EBB12C005F975A /* Logboard.xcframework */; };
BC72EF1125F24DF80068F040 /* Logboard.xcframework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = BC34DFD125EBB12C005F975A /* Logboard.xcframework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
BC72EF2B25F24E480068F040 /* Logboard.xcframework in Frameworks */ = {isa = PBXBuildFile; fileRef = BC34DFD125EBB12C005F975A /* Logboard.xcframework */; };
Expand Down Expand Up @@ -280,6 +284,20 @@
remoteGlobalIDString = 2915EC511D85BDF100621092;
remoteInfo = Screencast;
};
BC701F352AAD808F00C4BEFE /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 2945CBB41B4BE66000104112 /* Project object */;
proxyType = 1;
remoteGlobalIDString = BCCC45952AA289FA0016EFE8;
remoteInfo = SRTHaishinKit;
};
BC701F392AAD809D00C4BEFE /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 2945CBB41B4BE66000104112 /* Project object */;
proxyType = 1;
remoteGlobalIDString = BCCC45952AA289FA0016EFE8;
remoteInfo = SRTHaishinKit;
};
BC8A29922AA63D9E00F6D27F /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 2945CBB41B4BE66000104112 /* Project object */;
Expand Down Expand Up @@ -347,6 +365,7 @@
files = (
BC8A29912AA63D9E00F6D27F /* HaishinKit.framework in Embed Frameworks */,
BC72EF2C25F24E480068F040 /* Logboard.xcframework in Embed Frameworks */,
BC701F342AAD808F00C4BEFE /* SRTHaishinKit.framework in Embed Frameworks */,
);
name = "Embed Frameworks";
runOnlyForDeploymentPostprocessing = 0;
Expand Down Expand Up @@ -383,6 +402,7 @@
files = (
BCD63ADD26FDF34C0084842D /* HaishinKit.framework in Embed Frameworks */,
BCD63AE226FDF3500084842D /* Logboard.xcframework in Embed Frameworks */,
BC701F382AAD809D00C4BEFE /* SRTHaishinKit.framework in Embed Frameworks */,
);
name = "Embed Frameworks";
runOnlyForDeploymentPostprocessing = 0;
Expand Down Expand Up @@ -665,6 +685,7 @@
files = (
BC8A29902AA63D9E00F6D27F /* HaishinKit.framework in Frameworks */,
BC72EF2B25F24E480068F040 /* Logboard.xcframework in Frameworks */,
BC701F332AAD808F00C4BEFE /* SRTHaishinKit.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -702,6 +723,7 @@
files = (
BCD63ADC26FDF34C0084842D /* HaishinKit.framework in Frameworks */,
BCD63AE126FDF3500084842D /* Logboard.xcframework in Frameworks */,
BC701F372AAD809D00C4BEFE /* SRTHaishinKit.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -1368,6 +1390,7 @@
);
dependencies = (
BC8A29932AA63D9E00F6D27F /* PBXTargetDependency */,
BC701F362AAD808F00C4BEFE /* PBXTargetDependency */,
);
name = "Example macOS";
packageProductDependencies = (
Expand Down Expand Up @@ -1431,6 +1454,7 @@
);
dependencies = (
BCD63ADF26FDF34C0084842D /* PBXTargetDependency */,
BC701F3A2AAD809D00C4BEFE /* PBXTargetDependency */,
);
name = "Example iOS+SwiftUI";
productName = iOSSwiftUI;
Expand Down Expand Up @@ -1945,6 +1969,16 @@
target = 2915EC511D85BDF100621092 /* Screencast */;
targetProxy = BC2902362AA0E66A004821D2 /* PBXContainerItemProxy */;
};
BC701F362AAD808F00C4BEFE /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
target = BCCC45952AA289FA0016EFE8 /* SRTHaishinKit */;
targetProxy = BC701F352AAD808F00C4BEFE /* PBXContainerItemProxy */;
};
BC701F3A2AAD809D00C4BEFE /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
target = BCCC45952AA289FA0016EFE8 /* SRTHaishinKit */;
targetProxy = BC701F392AAD809D00C4BEFE /* PBXContainerItemProxy */;
};
BC8A29932AA63D9E00F6D27F /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
target = 2945CBBC1B4BE66000104112 /* HaishinKit */;
Expand Down
29 changes: 0 additions & 29 deletions Sources/Codec/AudioCodecRingBuffer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -113,35 +113,6 @@ final class AudioCodecRingBuffer {
return numSamples
}

func muted() {
if format.isInterleaved {
let channelCount = Int(format.channelCount)
switch format.commonFormat {
case .pcmFormatInt16:
current.int16ChannelData?[0].assign(repeating: 0, count: numSamples * channelCount)
case .pcmFormatInt32:
current.int32ChannelData?[0].assign(repeating: 0, count: numSamples * channelCount)
case .pcmFormatFloat32:
current.floatChannelData?[0].assign(repeating: 0, count: numSamples * channelCount)
default:
break
}
} else {
for i in 0..<Int(format.channelCount) {
switch format.commonFormat {
case .pcmFormatInt16:
current.int16ChannelData?[i].assign(repeating: 0, count: numSamples)
case .pcmFormatInt32:
current.int32ChannelData?[i].assign(repeating: 0, count: numSamples)
case .pcmFormatFloat32:
current.floatChannelData?[i].assign(repeating: 0, count: numSamples)
default:
break
}
}
}
}

func next() {
presentationTimeStamp = .invalid
index = 0
Expand Down

0 comments on commit 2513a60

Please sign in to comment.