Skip to content

Commit

Permalink
Merge pull request #3073 from michaellilltokiwa/ast_featre
Browse files Browse the repository at this point in the history
ast: feature, remove orphaned code `definedInOwnFile`
  • Loading branch information
fridis committed May 17, 2024
2 parents ca8eee1 + fcbf7d9 commit c45045e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 33 deletions.
2 changes: 0 additions & 2 deletions bin/aspell.dict
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,6 @@ deduplicate
defaultBehaviour
defaultToken
defawlt
definedInOwnFile
denormalized
deP
dependsOnGenerics
Expand Down Expand Up @@ -1031,7 +1030,6 @@ secNextPos
semiOrFlatLF
semiSepElmts
sep
setDefinedInOwnFile
setElse
setenv
setField
Expand Down
32 changes: 1 addition & 31 deletions src/dev/flang/ast/Feature.java
Original file line number Diff line number Diff line change
Expand Up @@ -2404,7 +2404,7 @@ public AbstractType resultType()
* @return true iff this has or any heir of this might have a frame object on
* a call.
*/
boolean hasThisType()
private boolean hasThisType()
{
return
_impl._kind != Impl.Kind.Intrinsic &&
Expand Down Expand Up @@ -2457,36 +2457,6 @@ public void setFeatureName(FeatureName newFeatureName)
}


/**
*
*/
private boolean definedInOwnFile = false;


/**
* definedInOwnFile
*
* @return
*/
public boolean definedInOwnFile() {
boolean result = definedInOwnFile;
return result;
}

/**
* setDefinedInOwnFile
*/
public void setDefinedInOwnFile()
{
if (PRECONDITIONS) require
(!definedInOwnFile);

definedInOwnFile = true;

if (POSTCONDITIONS) ensure
(definedInOwnFile);
}

/**
* outerRefName
*
Expand Down

0 comments on commit c45045e

Please sign in to comment.