Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
go
Commits
f18ced3f
Commit
f18ced3f
authored
Jun 07, 2012
by
Russ Cox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmd/gc: delete dead code
R=ken2 CC=golang-dev
https://golang.org/cl/6307050
parent
744b23fe
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
17 deletions
+1
-17
src/cmd/gc/dcl.c
src/cmd/gc/dcl.c
+1
-16
src/cmd/gc/go.h
src/cmd/gc/go.h
+0
-1
No files found.
src/cmd/gc/dcl.c
View file @
f18ced3f
...
...
@@ -432,21 +432,6 @@ oldname(Sym *s)
return
n
;
}
/*
* same for types
*/
Type
*
newtype
(
Sym
*
s
)
{
Type
*
t
;
t
=
typ
(
TFORW
);
t
->
sym
=
s
;
t
->
type
=
T
;
return
t
;
}
/*
* := declarations
*/
...
...
@@ -1311,7 +1296,7 @@ addmethod(Sym *sf, Type *t, int local)
}
// Should have picked off all the reasons above,
// but just in case, fall back to generic error.
yyerror
(
"invalid receiver type %T
"
,
pa
);
yyerror
(
"invalid receiver type %T
(%lT / %lT)"
,
pa
,
pa
,
t
);
return
;
}
...
...
src/cmd/gc/go.h
View file @
f18ced3f
...
...
@@ -942,7 +942,6 @@ Node* methodname(Node *n, Type *t);
Node
*
methodname1
(
Node
*
n
,
Node
*
t
);
Sym
*
methodsym
(
Sym
*
nsym
,
Type
*
t0
,
int
iface
);
Node
*
newname
(
Sym
*
s
);
Type
*
newtype
(
Sym
*
s
);
Node
*
oldname
(
Sym
*
s
);
void
popdcl
(
void
);
void
poptodcl
(
void
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment