Skip to content

Commit 0b91bc4

Browse files
committed
remove data getter
1 parent 9594659 commit 0b91bc4

File tree

2 files changed

+0
-16
lines changed

2 files changed

+0
-16
lines changed

ObjectiveGit/GTIndex.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,10 +114,6 @@
114114
/// Returns a new GTIndexEntry, or nil if an error occurred.
115115
- (GTIndexEntry *)entryWithName:(NSString *)name error:(NSError **)error;
116116

117-
///TODO: Document
118-
/// Get the
119-
- (NSData *)dataWithName:(NSString *)name error:(NSError **)error;
120-
121117
/// Add an entry to the index.
122118
///
123119
/// Note that this *cannot* add submodules. See -[GTSubmodule addToIndex:].

ObjectiveGit/GTIndex.m

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -160,18 +160,6 @@ - (GTIndexEntry *)entryWithName:(NSString *)name error:(NSError **)error {
160160
return [self entryAtIndex:pos];
161161
}
162162

163-
- (NSData *)dataWithName:(NSString *)name error:(NSError **)error {
164-
GTIndexEntry *entry = [self entryWithName:name error:error];
165-
if (*error) return nil;
166-
167-
const git_oid *oid = &entry.git_index_entry->id;
168-
GTBlob *blob = [self.repository lookUpObjectByGitOid:oid
169-
objectType:GTObjectTypeBlob
170-
error:error];
171-
172-
return [blob data];
173-
}
174-
175163
- (BOOL)addEntry:(GTIndexEntry *)entry error:(NSError **)error {
176164
int status = git_index_add(self.git_index, entry.git_index_entry);
177165
if (status != GIT_OK) {

0 commit comments

Comments
 (0)