Skip to content

Commit

Permalink
More Clean
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas Cornu committed Apr 26, 2024
1 parent 224e643 commit a747183
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 10 deletions.
1 change: 0 additions & 1 deletion src/ivoc/nrnsymdiritem.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ class SymbolItem {
SymbolItem(std::string&&, int whole_array = 0);
SymbolItem(Symbol*, Objectdata*, int index = 0, int whole_array = 0);
SymbolItem(Object*);
~SymbolItem();
Symbol* symbol() const {
return symbol_;
}
Expand Down
10 changes: 2 additions & 8 deletions src/nrniv/symdir.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -254,11 +254,6 @@ int SymDirectory::index(const std::string& name) const {
}
return -1;
}
void SymDirectory::whole_name(int index, std::string& s) const {
auto s1 = impl_->path_;
auto s2 = name(index);
s = s1 + s2;
}
bool SymDirectory::is_directory(int index) const {
return impl_->symbol_lists_.at(index)->is_directory();
}
Expand Down Expand Up @@ -313,8 +308,6 @@ void SymbolItem::no_object() {
name_ = "Deleted";
}

SymbolItem::~SymbolItem() {}

bool SymbolItem::is_directory() const {
if (symbol_)
switch (symbol_->type) {
Expand Down Expand Up @@ -407,8 +400,9 @@ void SymDirectoryImpl::load_object() {

void SymDirectoryImpl::load_aliases() {
IvocAliases* a = (IvocAliases*) obj_->aliases;
if (!a)
if (a == nullptr) {
return;
}
for (const auto& [_, s]: a->symtab_) {
append(s, nullptr, obj_);
}
Expand Down
1 change: 0 additions & 1 deletion src/nrniv/symdir.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ class SymDirectory: public Resource {
virtual int count() const;
virtual const std::string& name(int index) const;
virtual int index(const std::string&) const;
virtual void whole_name(int index, std::string&) const;
virtual bool is_directory(int index) const;
virtual double* variable(int index);
virtual int whole_vector(int index);
Expand Down

0 comments on commit a747183

Please sign in to comment.