From f761854eff9be856e4a02cc0413d8a2ff60ad831 Mon Sep 17 00:00:00 2001 From: "Matt T. Proud" Date: Tue, 11 Jun 2013 12:42:31 +0200 Subject: [PATCH] Code Review: Useless time and comment. --- extraction/processor0_0_1.go | 4 +--- model/fingerprinting.go | 4 ++-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/extraction/processor0_0_1.go b/extraction/processor0_0_1.go index dd53c1f..178ae61 100644 --- a/extraction/processor0_0_1.go +++ b/extraction/processor0_0_1.go @@ -40,9 +40,7 @@ const ( var Processor001 Processor = &processor001{} // processor001 is responsible for handling API version 0.0.1. -type processor001 struct { - time clock -} +type processor001 struct{} // entity001 represents a the JSON structure that 0.0.1 uses. type entity001 []struct { diff --git a/model/fingerprinting.go b/model/fingerprinting.go index 182b43b..0734912 100644 --- a/model/fingerprinting.go +++ b/model/fingerprinting.go @@ -85,8 +85,8 @@ func (f *Fingerprint) Equal(o *Fingerprint) bool { const rowKeyDelimiter = "-" -// LoadFromString transforms a rowKey into a Fingerprint, resetting any -// previous attributes. +// LoadFromString transforms a string representation into a Fingerprint, +// resetting any previous attributes. func (f *Fingerprint) LoadFromString(s string) { components := strings.Split(s, rowKeyDelimiter) hash, err := strconv.ParseUint(components[0], 10, 64)