Skip to content

Commit

Permalink
remove unused variables
Browse files Browse the repository at this point in the history
  • Loading branch information
mmomtchev committed Jan 13, 2025
1 parent 4898992 commit f78b6dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/gdal_dataset.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ NAN_METHOD(Dataset::New) {
Local<Value> layers = DatasetLayers::New(info.This());
Nan::SetPrivate(info.This(), Nan::New("layers_").ToLocalChecked(), layers);

Local<Value> rootObj, bandsObj;
Local<Value> bandsObj;
#if GDAL_VERSION_MAJOR > 3 || (GDAL_VERSION_MAJOR == 3 && GDAL_VERSION_MINOR >= 1)
GDALDataset *gdal_ds = f->get();
std::shared_ptr<GDALGroup> root = gdal_ds->GetRootGroup();
Expand Down
2 changes: 1 addition & 1 deletion src/gdal_mdarray.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ Local<Value> MDArray::New(std::shared_ptr<GDALMDArray> raw, GDALDataset *parent_

// add reference to datasource so datasource doesnt get GC'ed while group is
// alive
Local<Object> ds, group;
Local<Object> ds;
if (object_store.has(parent_ds)) {
ds = object_store.get(parent_ds);
} else {
Expand Down

0 comments on commit f78b6dc

Please sign in to comment.