unused aliases

This commit is contained in:
Roman Volosovskyi 2016-12-27 15:46:06 +02:00
parent 42b14e71df
commit 0c69a27d95
67 changed files with 49 additions and 128 deletions

View File

@ -1,7 +1,6 @@
(ns status-im.accounts.views.account
(:require-macros [status-im.utils.views :refer [defview]])
(:require [clojure.string :as s]
[status-im.resources :as res]
[status-im.components.react :refer [view
text
image

View File

@ -11,8 +11,7 @@
[re-frame.core :refer [dispatch subscribe]]
[status-im.accounts.styles :as st]
[status-im.i18n :refer [label]]
[clojure.string :as s]
[reagent.core :as r]))
[clojure.string :as s]))
(defview qr-code-view []
[{:keys [photo-path address name] :as contact} [:get-in [:qr-modal :contact]]

View File

@ -1,6 +1,5 @@
(ns status-im.android.platform
(:require [status-im.components.styles :as styles]
[status-im.utils.utils :as u]
[status-im.components.toolbar.styles :refer [toolbar-background2]]))
(def component-styles

View File

@ -6,8 +6,7 @@
minimum-command-suggestions-height
response-height-normal minimum-suggestion-height]]
[status-im.utils.platform :refer [platform-specific]]
[status-im.constants :refer [response-input-hiding-duration]]
[taoensso.timbre :as log]))
[status-im.constants :refer [response-input-hiding-duration]]))
;; todo magic value
(def middle-height 270)

View File

@ -6,7 +6,6 @@
[status-im.constants :refer [console-chat-id
text-content-type]]
[status-im.i18n :refer [label]]
[taoensso.timbre :as log]
[goog.string :as gstring]
goog.string.format))

View File

@ -11,7 +11,6 @@
:as c]
[cljs.reader :refer [read-string]]
[status-im.data-store.chats :as chats]
[taoensso.timbre :as log]
[status-im.utils.scheduler :as s]))
(defn check-preview [{:keys [content] :as message}]

View File

@ -1,14 +1,12 @@
(ns status-im.chat.handlers.send-message
(:require [status-im.utils.handlers :refer [register-handler] :as u]
[clojure.string :as s]
[status-im.data-store.chats :as chats]
[status-im.data-store.messages :as messages]
[status-im.components.status :as status]
[status-im.utils.random :as random]
[status-im.utils.datetime :as time]
[re-frame.core :refer [enrich after dispatch path]]
[status-im.chat.utils :as cu]
[status-im.commands.utils :as commands-utils]
[status-im.constants :refer [console-chat-id
wallet-chat-id
text-content-type

View File

@ -31,8 +31,7 @@
[status-im.i18n :refer [label label-pluralize]]
[status-im.components.animation :as anim]
[status-im.components.sync-state.offline :refer [offline-view]]
[status-im.constants :refer [content-type-status]]
[reagent.core :as r]))
[status-im.constants :refer [content-type-status]]))
(defn contacts-by-identity [contacts]
(->> contacts

View File

@ -1,6 +1,5 @@
(ns status-im.chat.styles.command-validation
(:require [status-im.components.styles :as st]
[status-im.chat.constants :as constants]))
(:require [status-im.chat.constants :as constants]))
(def messages-container
{:background-color :#d50000

View File

@ -1,7 +1,6 @@
(ns status-im.chat.styles.emoji
(:require [status-im.components.styles :refer [color-white]]
[status-im.chat.constants :refer [emoji-container-height]]
[taoensso.timbre :as log]))
[status-im.chat.constants :refer [emoji-container-height]]))
(def container-height emoji-container-height)

View File

@ -7,7 +7,6 @@
online-color
text1-color
text2-color]]
[status-im.utils.platform :as p]
[status-im.constants :refer [text-content-type
content-type-command]]))

View File

@ -4,8 +4,7 @@
[status-im.chat.constants :refer [max-input-height
min-input-height
input-spacing-top
input-spacing-bottom]]
[status-im.utils.platform :as p]))
input-spacing-bottom]]))
(def input-container
{:flex-direction :column})
@ -46,4 +45,4 @@
{:margin-top 10.5
:margin-left 12
:width 15
:height 15})
:height 15})

View File

@ -1,8 +1,7 @@
(ns status-im.chat.styles.plain-message
(:require [status-im.components.styles :refer [text1-color]]
[status-im.chat.constants :refer [max-input-height
min-input-height]]
[status-im.utils.platform :as p]))
min-input-height]]))
(defn message-input-button-touchable [width content-height]
{:width width

View File

@ -7,8 +7,7 @@
color-black]]
[status-im.chat.constants :refer [input-height
request-info-height
response-height-normal]]
[status-im.utils.platform :as p]))
response-height-normal]]))
(def drag-container
{:height 16

View File

@ -10,8 +10,7 @@
separator-color
text1-color
text2-color
text3-color]]
[taoensso.timbre :as log]))
text3-color]]))
(def suggestion-height 60)

View File

@ -1,6 +1,5 @@
(ns status-im.chat.suggestions
(:require [re-frame.core :refer [subscribe dispatch dispatch-sync]]
[status-im.db :as db]
[status-im.chat.constants :as chat-consts]
[status-im.models.commands :refer [get-commands
get-chat-command-request

View File

@ -1,7 +1,6 @@
(ns status-im.chat.suggestions-responder
(:require [status-im.components.drag-drop :as drag]
[status-im.components.animation :as anim]
[status-im.components.react :as react]
[re-frame.core :refer [dispatch]]))
;; todo bad name. Ideas?

View File

@ -1,7 +1,6 @@
(ns status-im.chat.utils
(:require [status-im.constants :refer [console-chat-id
wallet-chat-id]]
[taoensso.timbre :as log]))
wallet-chat-id]]))
(defn console? [s]
(= console-chat-id s))

View File

@ -7,9 +7,6 @@
icon
emoji-picker]]
[status-im.chat.styles.emoji :as st]
[status-im.components.animation :as anim]
[status-im.chat.suggestions-responder :as resp]
[status-im.chat.constants :as c]
[status-im.i18n :refer [label]]))
(defview emoji-view []

View File

@ -20,7 +20,6 @@
[status-im.models.commands :refer [parse-command-message-content
parse-command-request]]
[status-im.resources :as res]
[status-im.utils.datetime :as time]
[status-im.constants :refer [console-chat-id
wallet-chat-id
text-content-type
@ -34,8 +33,7 @@
get-contact-translated]]
[status-im.chat.utils :as cu]
[clojure.string :as str]
[status-im.chat.handlers.console :as console]
[taoensso.timbre :as log]))
[status-im.chat.handlers.console :as console]))
(def window-width (:width (get-dimensions "window")))

View File

@ -7,8 +7,7 @@
[status-im.chat.views.message-input :refer [plain-message-input-view]]
[status-im.chat.constants :refer [input-height]]
[status-im.utils.platform :refer [platform-specific]]
[status-im.chat.styles.message :as st]
[taoensso.timbre :as log]))
[status-im.chat.styles.message :as st]))
(defn get-height [event]
(.-height (.-layout (.-nativeEvent event))))

View File

@ -22,7 +22,6 @@
[status-im.components.webview-bridge :refer [webview-bridge]]
[status-im.i18n :refer [label]]
[status-im.utils.datetime :as dt]
[taoensso.timbre :as log]
[status-im.utils.name :refer [shortened-name]]
[status-im.utils.js-resources :as js-res]
[status-im.commands.utils :as cu]))

View File

@ -1,6 +1,5 @@
(ns status-im.chat.views.suggestions
(:require-macros [status-im.utils.views :refer [defview]]
[clojure.string :as str])
(:require-macros [status-im.utils.views :refer [defview]])
(:require [re-frame.core :refer [subscribe dispatch]]
[status-im.components.react :refer [view
scroll-view

View File

@ -4,8 +4,7 @@
text
image
touchable-highlight]]
[status-im.chats-list.views.inner-item :refer [chat-list-item-inner-view]]
[taoensso.timbre :as log]))
[status-im.chats-list.views.inner-item :refer [chat-list-item-inner-view]]))
(defn chat-list-item [[chat-id chat]]
[touchable-highlight {:on-press #(dispatch [:navigate-to :chat chat-id])}

View File

@ -12,10 +12,9 @@
[status-im.utils.gfycat.core :refer [generate-gfy]]
[status-im.constants :refer [console-chat-id
content-type-command
content-type-command-request] :as c]
[taoensso.timbre :as log]))
content-type-command-request] :as c]))
(defmulti message-content (fn [{:keys [content-type] :as message}] content-type))
(defmulti message-content (fn [{:keys [content-type]}] content-type))
(defn command-content
[{{:keys [command params]} :content}]

View File

@ -2,7 +2,6 @@
(:require [re-frame.core :refer [after dispatch subscribe trim-v debug]]
[status-im.utils.handlers :as u]
[status-im.utils.utils :refer [http-get show-popup]]
[status-im.components.status :as status]
[status-im.utils.types :refer [json->clj]]
[status-im.commands.utils :refer [generate-hiccup reg-handler]]
[clojure.string :as s]

View File

@ -10,8 +10,7 @@
[status-im.constants :refer [console-chat-id wallet-chat-id]]
[taoensso.timbre :as log]
[status-im.utils.homoglyph :as h]
[status-im.utils.js-resources :as js-res]
[clojure.string :as str]))
[status-im.utils.js-resources :as js-res]))
(def commands-js "commands.js")

View File

@ -5,7 +5,6 @@
text
image
icon]]
[taoensso.timbre :as log]
[status-im.components.icons.custom-icons :refer [oct-icon]]
[status-im.components.chat-icon.styles :as st]
[status-im.components.styles :refer [default-chat-color]]

View File

@ -1,6 +1,5 @@
(ns status-im.components.drag-drop
(:require [status-im.components.react :refer [animated pan-responder]]
[status-im.components.animation :as anim]))
(:require [status-im.components.react :refer [animated pan-responder]]))
(defn pan-handlers [pan-responder]
(js->clj (.-panHandlers pan-responder)))

View File

@ -15,15 +15,13 @@
[status-im.components.status-view.view :refer [status-view]]
[status-im.components.drawer.styles :as st]
[status-im.profile.validations :as v]
[status-im.resources :as res]
[status-im.utils.gfycat.core :refer [generate-gfy]]
[status-im.utils.utils :refer [clean-text]]
[status-im.i18n :refer [label]]
[status-im.components.react :refer [dismiss-keyboard!]]
[clojure.string :as str]
[cljs.spec :as s]
[status-im.components.chat-icon.screen :as ci]
[taoensso.timbre :as log]))
[status-im.components.chat-icon.screen :as ci]))
(defonce drawer-atom (atom))

View File

@ -1,7 +1,6 @@
(ns status-im.components.share
(:require [status-im.utils.platform :as p]))
(ns status-im.components.share)
(def class (js/require "react-native-share"))
(defn open [opts]
(.open class (clj->js opts)))
(.open class (clj->js opts)))

View File

@ -1,7 +1,5 @@
(ns status-im.components.webview-bridge
(:require [status-im.utils.utils :as u]
[reagent.core :as r]
[status-im.utils.platform :as p]))
(:require [reagent.core :as r]))
(def webview-bridge-class
(r/adapt-react-class (.-default (js/require "react-native-webview-bridge"))))

View File

@ -1,9 +1,7 @@
(ns status-im.contacts.subs
(:require-macros [reagent.ratom :refer [reaction]])
(:require [re-frame.core :refer [register-sub subscribe]]
[clojure.string :as str]
[status-im.utils.identicon :refer [identicon]]
[taoensso.timbre :as log]))
[status-im.utils.identicon :refer [identicon]]))
(register-sub :get-contacts
(fn [db _]

View File

@ -1,6 +1,5 @@
(ns status-im.contacts.views.contact-inner
(:require [clojure.string :as s]
[status-im.components.react :refer [view image text]]
(:require [status-im.components.react :refer [view image text]]
[status-im.components.chat-icon.screen :refer [contact-icon-contacts-tab]]
[status-im.contacts.styles :as st]
[status-im.utils.gfycat.core :refer [generate-gfy]]

View File

@ -22,9 +22,7 @@
[status-im.utils.listview :as lw]
[status-im.i18n :refer [label]]
[status-im.utils.platform :refer [platform-specific]]
[status-im.contacts.views.contact-inner :refer [contact-inner-view]]
[reagent.core :as r]
[clojure.string :as str]))
[status-im.contacts.views.contact-inner :refer [contact-inner-view]]))
(defn new-group-chat-view []
[touchable-highlight

View File

@ -1,6 +1,5 @@
(ns status-im.data-store.contacts
(:require [status-im.data-store.realm.contacts :as data-store]
[taoensso.timbre :as log])
(:require [status-im.data-store.realm.contacts :as data-store])
(:refer-clojure :exclude [exists?]))
(defn get-all

View File

@ -1,6 +1,5 @@
(ns status-im.data-store.core
(:require [taoensso.timbre :as log]
[status-im.data-store.realm.core :as data-source]))
(:require [status-im.data-store.realm.core :as data-source]))
(defn init []

View File

@ -5,8 +5,7 @@
[clojure.walk :refer [stringify-keys keywordize-keys]]
[status-im.commands.utils :refer [generate-hiccup]]
[cljs.reader :refer [read-string]]
[status-im.constants :as c]
[taoensso.timbre :as log])
[status-im.constants :as c])
(:refer-clojure :exclude [update]))
(defn- map-to-str

View File

@ -1,6 +1,5 @@
(ns status-im.data-store.pending-messages
(:require [status-im.data-store.realm.pending-messages :as data-store]
[clojure.string :as str]
[status-im.utils.hex :as i]))
(defn- get-id
@ -45,4 +44,4 @@
(defn delete-all-by-chat-id
[chat-id]
(data-store/delete-all-by-chat-id chat-id))
(data-store/delete-all-by-chat-id chat-id))

View File

@ -1,6 +1,5 @@
(ns status-im.data-store.processed-messages
(:require [status-im.data-store.realm.processed-messages :as data-store]
[taoensso.timbre :as log])
(:require [status-im.data-store.realm.processed-messages :as data-store])
(:refer-clojure :exclude [exists?]))
(defn get-filtered

View File

@ -1,6 +1,5 @@
(ns status-im.data-store.realm.core
(:require [status-im.utils.utils :as u]
[status-im.utils.types :refer [to-string]]
(:require [status-im.utils.types :refer [to-string]]
[status-im.data-store.realm.schemas.account.core :as account]
[status-im.data-store.realm.schemas.base.core :as base]
[taoensso.timbre :as log]

View File

@ -1,7 +1,6 @@
(ns status-im.discover.screen
(:require-macros [status-im.utils.views :refer [defview]])
(:require
[reagent.core :as r]
[re-frame.core :refer [dispatch subscribe]]
[clojure.string :as str]
[status-im.components.react :refer [view

View File

@ -15,8 +15,7 @@
[status-im.utils.platform :refer [platform-specific]]
[status-im.i18n :refer [label]]
[status-im.discover.styles :as st]
[status-im.contacts.styles :as contacts-st]
[taoensso.timbre :as log]))
[status-im.contacts.styles :as contacts-st]))
(defn render-separator [_ row-id _]
(list-item [view {:style st/row-separator

View File

@ -8,7 +8,6 @@
[status-im.data-store.messages :as messages]
[status-im.data-store.chats :as chats]
[status-im.constants :refer [text-content-type]]
[status-im.utils.handlers :as u]
[status-im.navigation.handlers :as nav]))
(defmethod nav/preload-data! :group-settings

View File

@ -2,8 +2,7 @@
(:require [re-frame.core :refer [subscribe dispatch dispatch-sync]]
[status-im.utils.utils :refer [http-post]]
[taoensso.timbre :as log]
[status-im.utils.scheduler :as sch]
[status-im.data-store.messages :as messages]))
[status-im.utils.scheduler :as sch]))
(defn sign-up
[db phone-number message-id handler]

View File

@ -33,7 +33,6 @@
[status-im.translations.zh-hant :as zh-hant]
[status-im.translations.zh-wuu :as zh-wuu]
[status-im.translations.zh-yue :as zh-yue]
[status-im.utils.utils :as u]
[status-im.utils.js-resources :refer [default-contacts]]))
(def i18n (js/require "react-native-i18n"))

View File

@ -1,6 +1,5 @@
(ns status-im.ios.platform
(:require [status-im.components.styles :as styles]
[status-im.utils.utils :as u]
[status-im.components.toolbar.styles :refer [toolbar-background2]]))
(def component-styles

View File

@ -1,7 +1,6 @@
(ns status-im.navigation.handlers
(:require [re-frame.core :refer [dispatch debug enrich after]]
[status-im.utils.handlers :refer [register-handler]]
[taoensso.timbre :as log]))
[status-im.utils.handlers :refer [register-handler]]))
(defn push-view [db view-id]
(-> db

View File

@ -2,8 +2,7 @@
(:require [re-frame.core :refer [dispatch debug enrich after]]
[status-im.utils.handlers :refer [register-handler]]
[status-im.utils.handlers :as u]
[status-im.network.net-info :as ni]
[clojure.string :as s]))
[status-im.network.net-info :as ni]))
(register-handler :listen-to-network-status!
(u/side-effect!

View File

@ -7,10 +7,8 @@
[status-im.components.toolbar.view :refer [toolbar]]
[status-im.utils.listview :refer [to-datasource]]
[status-im.participants.views.contact :refer [participant-contact]]
[reagent.core :as r]
[status-im.participants.styles :as st]
[status-im.i18n :refer [label]]
[status-im.components.styles :as cst]))
[status-im.i18n :refer [label]]))
(defn new-participants-toolbar []
[view

View File

@ -4,7 +4,6 @@
[status-im.components.react :refer [view]]
[status-im.contacts.views.contact-inner :refer [contact-inner-view]]
[status-im.components.item-checkbox :refer [item-checkbox]]
[reagent.core :as r]
[status-im.participants.styles :as st]))
;; todo duplication

View File

@ -15,8 +15,7 @@
:refer [participant-contact]]
[reagent.core :as r]
[status-im.participants.styles :as st]
[status-im.i18n :refer [label]]
[status-im.components.styles :as cst]))
[status-im.i18n :refer [label]]))
(defn remove-participants-toolbar []
[view

View File

@ -7,9 +7,6 @@
[status-im.utils.image-processing :refer [img->base64]]
[status-im.i18n :refer [label]]
[status-im.utils.handlers :as u :refer [get-hashtags]]
[clojure.string :as str]
[status-im.profile.validations :as v]
[cljs.spec :as s]
[taoensso.timbre :as log]))
(defn message-user [identity]

View File

@ -22,7 +22,6 @@
[status-im.components.text-field.view :refer [text-field]]
[status-im.components.selectable-field.view :refer [selectable-field]]
[status-im.components.status-view.view :refer [status-view]]
[status-im.components.share :as share]
[status-im.utils.phone-number :refer [format-phone-number]]
[status-im.utils.image-processing :refer [img->base64]]
[status-im.utils.platform :refer [platform-specific]]

View File

@ -1,6 +1,5 @@
(ns status-im.protocol.chat
(:require [cljs.spec :as s]
[status-im.protocol.message :as m]
[status-im.protocol.web3.filtering :as f]
[status-im.protocol.web3.delivery :as d]
[taoensso.timbre :refer-macros [debug]]

View File

@ -1,6 +1,5 @@
(ns status-im.protocol.group
(:require
[status-im.protocol.message :as m]
[status-im.protocol.web3.delivery :as d]
[status-im.protocol.web3.utils :as u]
[cljs.spec :as s]

View File

@ -3,7 +3,7 @@
[status-im.protocol.ack :as ack]
[status-im.protocol.web3.utils :as u]
[status-im.protocol.encryption :as e]
[taoensso.timbre :refer-macros [debug] :as log]
[taoensso.timbre :refer-macros [debug]]
[status-im.utils.hex :as i]))
(defn- parse-payload [payload]

View File

@ -1,7 +1,6 @@
(ns status-im.transactions.subs
(:require-macros [reagent.ratom :refer [reaction]])
(:require [re-frame.core :refer [register-sub subscribe]]
[clojure.string :as s]
[status-im.utils.hex :as i]))
(register-sub :transactions

View File

@ -11,8 +11,7 @@
[status-im.components.styles :refer [icon-ok
icon-close]]
[status-im.transactions.styles :as st]
[status-im.i18n :refer [label label-pluralize]]
[taoensso.timbre :as log]))
[status-im.i18n :refer [label label-pluralize]]))
(defn title-bar [title id]
[view st/title-bar

View File

@ -1,7 +1,6 @@
(ns status-im.utils.crypt
(:require [goog.crypt :refer [byteArrayToHex]]
[clojure.string :as s]
[status-im.utils.utils :as u])
[clojure.string :as s])
(:import goog.crypt.Sha256))
(def random-bytes (js/require "react-native-randombytes"))

View File

@ -1,6 +1,4 @@
(ns status-im.utils.fs
(:require [clojure.string :as s]
[status-im.utils.utils :as u]))
(ns status-im.utils.fs)
(def fs (js/require "react-native-fs"))

View File

@ -1,5 +1,4 @@
(ns status-im.utils.homoglyph
(:require [status-im.utils.utils :as u]))
(ns status-im.utils.homoglyph)
(def homoglyph-finder (js/require "homoglyph-finder"))

View File

@ -1,6 +1,4 @@
(ns status-im.utils.identicon
(:require [clojure.string :as s]
[status-im.utils.utils :as u]))
(ns status-im.utils.identicon)
(def default-size 40)

View File

@ -1,6 +1,5 @@
(ns status-im.utils.image-processing
(:require [reagent.core :as r]
[status-im.utils.fs :refer [read-file]]
(:require [status-im.utils.fs :refer [read-file]]
[taoensso.timbre :as log]
[clojure.string :as str]))
@ -27,4 +26,4 @@
on-error (fn [error]
(log/debug "Resized error: " error)
(on-error :resize error))]
(resize path 150 150 on-resized on-error)))
(resize path 150 150 on-resized on-error)))

View File

@ -1,5 +1,4 @@
(ns status-im.utils.phone-number
(:require [status-im.utils.utils :as u]))
(ns status-im.utils.phone-number)
(def i18n (js/require "react-native-i18n"))
(def locale (or (.-locale i18n) "___en"))

View File

@ -1,6 +1,5 @@
(ns status-im.utils.platform
(:require [status-im.utils.utils :as u]
[status-im.android.platform :as android]
(:require [status-im.android.platform :as android]
[status-im.ios.platform :as ios]))
(def react-native (js/require "react-native"))

View File

@ -1,6 +1,5 @@
(ns status-im.utils.sms-listener
(:require [status-im.utils.platform :refer [android?]]
[status-im.utils.utils :as u]))
(:require [status-im.utils.platform :refer [android?]]))
(def sms-listener (.-default (js/require "react-native-android-sms-listener")))