Skip to content

Commit 5271897

Browse files
committed
DBO: Drop GetId() it doesn't really make sense
1 parent 8640406 commit 5271897

4 files changed

Lines changed: 0 additions & 16 deletions

File tree

binaryninjaapi.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22406,7 +22406,6 @@ namespace BinaryNinja {
2240622406

2240722407
// TODO: User subclassing
2240822408
int GetType() const;
22409-
std::string GetId() const;
2241022409
std::string GetDescription() const;
2241122410
Ref<Metadata> GetMetadata() const;
2241222411
Ref<DatabaseObject> GetParent() const;

binaryninjacore.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9127,7 +9127,6 @@ extern "C"
91279127
BINARYNINJACOREAPI void BNFreeDatabaseObject(BNDatabaseObject* object);
91289128
BINARYNINJACOREAPI void BNFreeDatabaseObjectList(BNDatabaseObject** objects, size_t count);
91299129
BINARYNINJACOREAPI int BNGetDatabaseObjectType(BNDatabaseObject* object);
9130-
BINARYNINJACOREAPI char* BNGetDatabaseObjectId(BNDatabaseObject* object);
91319130
BINARYNINJACOREAPI char* BNGetDatabaseObjectDescription(BNDatabaseObject* object);
91329131
BINARYNINJACOREAPI BNMetadata* BNGetDatabaseObjectMetadata(BNDatabaseObject* object);
91339132
BINARYNINJACOREAPI BNDatabaseObject* BNGetDatabaseObjectParent(BNDatabaseObject* object);

merge.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,6 @@ Ref<DatabaseObject> DatabaseObject::GetParent() const
4141
}
4242

4343

44-
std::string DatabaseObject::GetId() const
45-
{
46-
char* id = BNGetDatabaseObjectId(m_object);
47-
std::string result = id;
48-
BNFreeString(id);
49-
return result;
50-
}
51-
52-
5344
std::string DatabaseObject::GetDescription() const
5445
{
5546
char* desc = BNGetDatabaseObjectDescription(m_object);

python/database.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -385,11 +385,6 @@ def type(self) -> int:
385385
"""Get the database object type (read-only)"""
386386
return core.BNGetDatabaseObjectType(self.handle)
387387

388-
@property
389-
def id(self) -> str:
390-
"""Get the database object id (read-only)"""
391-
return core.BNGetDatabaseObjectId(self.handle)
392-
393388
@property
394389
def description(self) -> str:
395390
"""Get the database object description (read-only)"""

0 commit comments

Comments
 (0)