Merge lp:~jtv/gwacl/creds-crunch into lp:gwacl

Proposed by Jeroen T. Vermeulen
Status: Merged
Approved by: Julian Edwards
Approved revision: 61
Merged at revision: 61
Proposed branch: lp:~jtv/gwacl/creds-crunch
Merge into: lp:gwacl
Diff against target: 47 lines (+0/-38)
2 files modified
creds.go (+0/-17)
creds_test.go (+0/-21)
To merge this branch: bzr merge lp:~jtv/gwacl/creds-crunch
Reviewer Review Type Date Requested Status
Julian Edwards (community) Approve
Review via email: mp+155406@code.launchpad.net

Commit message

Remove unused Creds struct.

Description of the change

This may be misguided, so feel free to Disapprove. But in case it isn't, I might as well make it easy to clean up the Creds structure that we weren't using.

Jeroen

To post a comment you must log in.
Revision history for this message
Julian Edwards (julian-edwards) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== removed file 'creds.go'
2--- creds.go 2013-03-04 07:15:38 +0000
3+++ creds.go 1970-01-01 00:00:00 +0000
4@@ -1,17 +0,0 @@
5-// Copyright 2013 Canonical Ltd. This software is licensed under the
6-// GNU Lesser General Public License version 3 (see the file COPYING).
7-
8-package gwacl
9-
10-type Creds struct {
11- user string
12- key string
13-}
14-
15-func (creds *Creds) User() string {
16- return creds.user
17-}
18-
19-func (creds *Creds) Key() string {
20- return creds.key
21-}
22
23=== removed file 'creds_test.go'
24--- creds_test.go 2013-03-12 06:06:14 +0000
25+++ creds_test.go 1970-01-01 00:00:00 +0000
26@@ -1,21 +0,0 @@
27-// Copyright 2013 Canonical Ltd. This software is licensed under the
28-// GNU Lesser General Public License version 3 (see the file COPYING).
29-
30-package gwacl
31-
32-import (
33- . "launchpad.net/gocheck"
34-)
35-
36-type CredsSuite struct{}
37-
38-var _ = Suite(&CredsSuite{})
39-
40-func (suite *CredsSuite) TestCreds(c *C) {
41- // How do I make a random string with gocheck?
42- creds := Creds{user: "user", key: "key"}
43- user := creds.User()
44- key := creds.Key()
45- c.Check(user, Equals, "user")
46- c.Check(key, Equals, "key")
47-}

Subscribers

People subscribed via source and target branches