Skip to content

Commit 3bceef9

Browse files
committed
Delete deadcode
1 parent 3b1ec67 commit 3bceef9

File tree

3 files changed

+1
-13
lines changed

3 files changed

+1
-13
lines changed

examples/basic/interfaces/command/command.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import (
88
type (
99
// Command は、サンプルの動作確認のためのインターフェースです.
1010
Command interface {
11-
Version() string
1211
Run() error
1312
}
1413

@@ -51,8 +50,3 @@ func (c *ListFileCommand) Run() error {
5150

5251
return nil
5352
}
54-
55-
// Version は、本コマンドのバージョンを返します.
56-
func (c *ListFileCommand) Version() string {
57-
return "v0.0.1"
58-
}

examples/basic/runtimes/memorystats.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -128,10 +128,3 @@ func printMemoryStats(prefix string) {
128128
func toKb(bytes uint64) uint64 {
129129
return bytes / 1024
130130
}
131-
132-
// noinspection GoUnusedFunction
133-
//
134-
//lint:ignore U1000 使われていないのは承知済み
135-
func toMb(bytes uint64) uint64 {
136-
return toKb(bytes) / 1024
137-
}

examples/basic/variables/examples.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,6 @@ func (r *register) Regist(m mapping.ExampleMapping) {
2626
m["short_assignment_statement"] = shortassignment.Basic
2727
m["shadowing_variable"] = shadowing.Basic
2828
m["using_ref_to_loop_iterator_variable"] = loopiterator.CommonMistakePattern
29+
m["passing_loop_variable_to_goroutine_by_pointer"] = loopiterator.PassingLoopVariableToGoroutineByPointer
2930
m["function_returns_address_of_local_variable"] = function_returns_address_of_local_variable.FunctionReturnsAddressOfLocalVariable
3031
}

0 commit comments

Comments
 (0)