Unverified Commit b3f694e5 authored by Tomas's avatar Tomas Committed by GitHub

refactor: Remove androidStoragePath from irmaclient.New (#69)

parent 39dff3e6
...@@ -53,7 +53,6 @@ type Client struct { ...@@ -53,7 +53,6 @@ type Client struct {
Preferences Preferences Preferences Preferences
Configuration *irma.Configuration Configuration *irma.Configuration
irmaConfigurationPath string irmaConfigurationPath string
androidStoragePath string
handler ClientHandler handler ClientHandler
} }
...@@ -108,8 +107,6 @@ type secretKey struct { ...@@ -108,8 +107,6 @@ type secretKey struct {
// New creates a new Client that uses the directory // New creates a new Client that uses the directory
// specified by storagePath for (de)serializing itself. irmaConfigurationPath // specified by storagePath for (de)serializing itself. irmaConfigurationPath
// is the path to a (possibly readonly) folder containing irma_configuration; // is the path to a (possibly readonly) folder containing irma_configuration;
// androidStoragePath is an optional path to the files of the old android app
// (specify "" if you do not want to parse the old android app files),
// and handler is used for informing the user of new stuff, and when a // and handler is used for informing the user of new stuff, and when a
// enrollment to a keyshare server needs to happen. // enrollment to a keyshare server needs to happen.
// The client returned by this function has been fully deserialized // The client returned by this function has been fully deserialized
...@@ -120,7 +117,6 @@ type secretKey struct { ...@@ -120,7 +117,6 @@ type secretKey struct {
func New( func New(
storagePath string, storagePath string,
irmaConfigurationPath string, irmaConfigurationPath string,
androidStoragePath string,
handler ClientHandler, handler ClientHandler,
) (*Client, error) { ) (*Client, error) {
var err error var err error
...@@ -136,7 +132,6 @@ func New( ...@@ -136,7 +132,6 @@ func New(
keyshareServers: make(map[irma.SchemeManagerIdentifier]*keyshareServer), keyshareServers: make(map[irma.SchemeManagerIdentifier]*keyshareServer),
attributes: make(map[irma.CredentialTypeIdentifier][]*irma.AttributeList), attributes: make(map[irma.CredentialTypeIdentifier][]*irma.AttributeList),
irmaConfigurationPath: irmaConfigurationPath, irmaConfigurationPath: irmaConfigurationPath,
androidStoragePath: androidStoragePath,
handler: handler, handler: handler,
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment