mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-25 10:48:54 -06:00
remove dead code
This commit is contained in:
@@ -134,7 +134,6 @@ PgfDB *pgf_read_ngf(const char *fpath,
|
|||||||
{
|
{
|
||||||
PgfDB *db = NULL;
|
PgfDB *db = NULL;
|
||||||
|
|
||||||
bool is_new = false;
|
|
||||||
PGF_API_BEGIN {
|
PGF_API_BEGIN {
|
||||||
db = new PgfDB(fpath, O_RDWR, 0);
|
db = new PgfDB(fpath, O_RDWR, 0);
|
||||||
|
|
||||||
@@ -154,11 +153,8 @@ PgfDB *pgf_read_ngf(const char *fpath,
|
|||||||
return db;
|
return db;
|
||||||
} PGF_API_END
|
} PGF_API_END
|
||||||
|
|
||||||
if (db != NULL) {
|
if (db != NULL)
|
||||||
delete db;
|
delete db;
|
||||||
if (is_new)
|
|
||||||
remove(fpath);
|
|
||||||
}
|
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user