Skip to content

Commit

Permalink
std::jule::sema: remove the IsBuiltin method of Trait
Browse files Browse the repository at this point in the history
  • Loading branch information
mertcandav committed Aug 1, 2024
1 parent 4fc0415 commit e954f4e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
5 changes: 0 additions & 5 deletions src/julec/obj/cxx/ident.jule
Original file line number Diff line number Diff line change
Expand Up @@ -123,11 +123,6 @@ impl identCoder {

// Returns output identifier of trait.
static fn traitDecl(t: &Trait): str {
if t.IsBuiltin() {
// Do not use [identCoder.writeIdentTo] for this.
// Built-in traits are always ASCII.
ret "jule::" + t.Ident
}
ret identCoder.toOut(t.Ident, uintptr(t))
}

Expand Down
5 changes: 0 additions & 5 deletions std/jule/sema/trait.jule
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,6 @@ impl Kind for Trait {
}

impl Trait {
// Reports whether Trait is built-in.
fn IsBuiltin(self): bool {
ret self.Token == nil
}

// Returns method by identifier.
// Returns nil if not exist any method in this identifier.
fn FindMethod(mut self, ident: str): &Fn {
Expand Down

0 comments on commit e954f4e

Please sign in to comment.