Skip to content

Commit

Permalink
Remove unused function from hypertable.c
Browse files Browse the repository at this point in the history
hypertable_delete_by_id has long since been replaced by hypertable_delete_name and isn't used anywhere in the codebase.
  • Loading branch information
Amy Tai authored and RobAtticus committed Dec 4, 2018
1 parent 79bee23 commit a21c302
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 22 deletions.
21 changes: 0 additions & 21 deletions src/hypertable.c
Original file line number Diff line number Diff line change
Expand Up @@ -356,27 +356,6 @@ hypertable_tuple_delete(TupleInfo *ti, void *data)
return true;
}

int
hypertable_delete_by_id(int32 hypertable_id)
{
ScanKeyData scankey[1];

ScanKeyInit(&scankey[0], Anum_hypertable_pkey_idx_id,
BTEqualStrategyNumber, F_INT4EQ,
Int32GetDatum(hypertable_id));

return hypertable_scan_limit_internal(scankey,
1,
HYPERTABLE_ID_INDEX,
hypertable_tuple_delete,
NULL,
1,
RowExclusiveLock,
false,
CurrentMemoryContext);
}


int
hypertable_delete_by_name(const char *schema_name, const char *table_name)
{
Expand Down
1 change: 0 additions & 1 deletion src/hypertable.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ extern int hypertable_update(Hypertable *ht);
extern int hypertable_set_name(Hypertable *ht, const char *newname);
extern int hypertable_set_schema(Hypertable *ht, const char *newname);
extern int hypertable_set_num_dimensions(Hypertable *ht, int16 num_dimensions);
extern int hypertable_delete_by_id(int32 hypertable_id);
extern int hypertable_delete_by_name(const char *schema_name, const char *table_name);
extern int hypertable_reset_associated_schema_name(const char *associated_schema);
extern Oid hypertable_id_to_relid(int32 hypertable_id);
Expand Down

0 comments on commit a21c302

Please sign in to comment.