Skip to content
Snippets Groups Projects
Commit 2e9193cf authored by Tommy Olofsson's avatar Tommy Olofsson
Browse files

Cleaned up the copy-aspect slightly.

parent 3309c725
No related branches found
No related tags found
No related merge requests found
......@@ -722,13 +722,6 @@ aspect C_copy {
env_src.println("{");
env_src.indent();
getType().C_emitCopy(env_src, env_dst);
// if (C_isDynamic()) {
// env_src.println("{");
// env_src.indent();
// getType().C_emitCopyDeallocation(env_src);
// env_src.unindent();
// env_src.println("}");
// }
env_src.unindent();
env_src.println("}");
}
......@@ -869,13 +862,6 @@ aspect C_copy {
env.println("{");
env.indent();
getType().C_emitCopyDeallocation(env);
// if (C_isDynamic()) {
// env.println("{");
// env.indent();
// getType().C_emitCopyDeallocation(env);
// env.unindent();
// env.println("}");
// }
env.unindent();
env.println("}");
}
......@@ -942,7 +928,6 @@ aspect C_copy {
}
public void Field.C_emitCopyDeallocation(C_env env) {
//getType().C_emitCopyDeallocation(env.nestStruct("." + getName()));
getType().C_emitCopyDeallocation(env.nestStruct(env.memberAccessor()
+ getName()));
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment