Removed unused code
This commit is contained in:
@@ -54,7 +54,7 @@ func (r *ledisRepository) parseAnnotations(entity interface{}) {
|
||||
}
|
||||
|
||||
// TODO Use annotations to specify fields to be used
|
||||
func (r *ledisRepository) NewId(fields ...string) string {
|
||||
func (r *ledisRepository) newId(fields ...string) string {
|
||||
s := fmt.Sprintf("%s\\%s", strings.ToUpper(r.table), strings.Join(fields, ""))
|
||||
return fmt.Sprintf("%x", md5.Sum([]byte(s)))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user