Skip to content

Commit 0c360e8

Browse files
committed
gitbase: remove WithProjection from all tables where it's not used
Signed-off-by: Miguel Molina <[email protected]>
1 parent 16b69aa commit 0c360e8

File tree

9 files changed

+0
-36
lines changed

9 files changed

+0
-36
lines changed

commit_blobs.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,6 @@ func (t *commitBlobsTable) WithFilters(filters []sql.Expression) sql.Table {
4646
return &nt
4747
}
4848

49-
func (t *commitBlobsTable) WithProjection(colNames []string) sql.Table {
50-
return t
51-
}
52-
5349
func (t *commitBlobsTable) WithIndexLookup(idx sql.IndexLookup) sql.Table {
5450
nt := *t
5551
nt.index = idx

commit_files.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,6 @@ func (t *commitFilesTable) WithFilters(filters []sql.Expression) sql.Table {
5151
return &nt
5252
}
5353

54-
func (t *commitFilesTable) WithProjection(colNames []string) sql.Table {
55-
return t
56-
}
57-
5854
func (t *commitFilesTable) WithIndexLookup(idx sql.IndexLookup) sql.Table {
5955
nt := *t
6056
nt.index = idx

commit_trees.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,6 @@ func (t *commitTreesTable) WithFilters(filters []sql.Expression) sql.Table {
4747
return &nt
4848
}
4949

50-
func (t *commitTreesTable) WithProjection(colNames []string) sql.Table {
51-
return t
52-
}
53-
5450
func (t *commitTreesTable) WithIndexLookup(idx sql.IndexLookup) sql.Table {
5551
nt := *t
5652
nt.index = idx

commits.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,6 @@ func (r *commitsTable) WithFilters(filters []sql.Expression) sql.Table {
5757
return &nt
5858
}
5959

60-
func (r *commitsTable) WithProjection(colNames []string) sql.Table {
61-
return r
62-
}
63-
6460
func (r *commitsTable) WithIndexLookup(idx sql.IndexLookup) sql.Table {
6561
nt := *r
6662
nt.index = idx

ref_commits.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,6 @@ func (t *refCommitsTable) WithFilters(filters []sql.Expression) sql.Table {
5151
return &nt
5252
}
5353

54-
func (t *refCommitsTable) WithProjection(colNames []string) sql.Table {
55-
return t
56-
}
57-
5854
func (t *refCommitsTable) WithIndexLookup(idx sql.IndexLookup) sql.Table {
5955
nt := *t
6056
nt.index = idx

references.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,6 @@ func (r *referencesTable) WithFilters(filters []sql.Expression) sql.Table {
5353
return &nt
5454
}
5555

56-
func (r *referencesTable) WithProjection(colNames []string) sql.Table {
57-
return r
58-
}
59-
6056
func (r *referencesTable) WithIndexLookup(idx sql.IndexLookup) sql.Table {
6157
nt := *r
6258
nt.index = idx

remotes.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,6 @@ func (r *remotesTable) WithFilters(filters []sql.Expression) sql.Table {
5252
return &nt
5353
}
5454

55-
func (r *remotesTable) WithProjection(colNames []string) sql.Table {
56-
return r
57-
}
58-
5955
func (r *remotesTable) WithIndexLookup(idx sql.IndexLookup) sql.Table {
6056
nt := *r
6157
nt.index = idx

repositories.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,6 @@ func (r *repositoriesTable) WithFilters(filters []sql.Expression) sql.Table {
4848
return &nt
4949
}
5050

51-
func (r *repositoriesTable) WithProjection(colNames []string) sql.Table {
52-
return r
53-
}
54-
5551
func (r *repositoriesTable) WithIndexLookup(idx sql.IndexLookup) sql.Table {
5652
nt := *r
5753
nt.index = idx

tree_entries.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,6 @@ func (r *treeEntriesTable) WithFilters(filters []sql.Expression) sql.Table {
4949
return &nt
5050
}
5151

52-
func (r *treeEntriesTable) WithProjection(colNames []string) sql.Table {
53-
return r
54-
}
55-
5652
func (r *treeEntriesTable) WithIndexLookup(idx sql.IndexLookup) sql.Table {
5753
nt := *r
5854
nt.index = idx

0 commit comments

Comments
 (0)