Skip to content

Commit

Permalink
optimize import with clion
Browse files Browse the repository at this point in the history
Signed-off-by: Alexey Chernyshov <[email protected]>
  • Loading branch information
Alexey-N-Chernyshov committed Jan 25, 2018
1 parent bbcb240 commit 9376e19
Show file tree
Hide file tree
Showing 11 changed files with 21 additions and 38 deletions.
6 changes: 3 additions & 3 deletions housekeeping/upsource-webhook.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#!/usr/bin/python3

import argparse
import json
import requests
import os
import argparse

import requests
from flask import Flask, request

app = Flask(__name__)


Expand Down
2 changes: 0 additions & 2 deletions iroha-cli/client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@

#include "client.hpp"
#include <model/converters/json_query_factory.hpp>
#include <utility>
#include "model/converters/json_common.hpp"
#include "model/converters/json_transaction_factory.hpp"
#include "model/converters/pb_query_factory.hpp"
#include "model/converters/pb_transaction_factory.hpp"
Expand Down
4 changes: 0 additions & 4 deletions iroha-cli/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,10 @@
#include "crypto/keys_manager_impl.hpp"
#include "grpc_response_handler.hpp"
#include "interactive/interactive_cli.hpp"
#include "logger/logger.hpp"
#include "model/converters/json_block_factory.hpp"
#include "model/converters/json_common.hpp"
#include "model/converters/json_query_factory.hpp"
#include "model/generators/block_generator.hpp"
#include "model/generators/signature_generator.hpp"
#include "model/model_crypto_provider_impl.hpp"
#include "responses.pb.h"
#include "validators.hpp"

DEFINE_string(config, "", "Trusted peer's ip addresses");
Expand Down
2 changes: 0 additions & 2 deletions irohad/main/irohad.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@
#include "main/iroha_conf_loader.hpp"
#include "main/raw_block_loader.hpp"

#include "logger/logger.hpp"

/**
* Gflag validator.
* Validator for the configuration file path input argument.
Expand Down
10 changes: 6 additions & 4 deletions irohad/torii/command_client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,14 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

#include <block.pb.h>
#include <thread>

#include <grpc++/grpc++.h>
#include <network/grpc_call.hpp>
#include <thread>
#include <torii/command_client.hpp>
#include <torii/torii_service_handler.hpp>

#include "block.pb.h"
#include "torii/command_client.hpp"
#include "torii/torii_service_handler.hpp"

namespace torii {

Expand Down
7 changes: 4 additions & 3 deletions irohad/torii/processor/query_processor.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,12 @@
#ifndef IROHA_QUERY_PROCESSOR_HPP
#define IROHA_QUERY_PROCESSOR_HPP

#include <model/client.hpp>
#include <model/query.hpp>
#include <model/query_response.hpp>
#include <rxcpp/rx.hpp>

#include "model/client.hpp"
#include "model/query.hpp"
#include "model/query_response.hpp"

namespace iroha {
namespace torii {

Expand Down
17 changes: 8 additions & 9 deletions irohad/torii/torii_service_handler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,12 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

#include <endpoint.grpc.pb.h>
#include <google/protobuf/empty.pb.h>
#include <grpc/support/time.h>
#include <unistd.h>
#include <network/grpc_async_service.hpp>
#include <network/grpc_call.hpp>
#include <torii/command_service.hpp>
#include <torii/query_service.hpp>
#include <torii/torii_service_handler.hpp>
#include "endpoint.grpc.pb.h"
#include "network/grpc_async_service.hpp"
#include "network/grpc_call.hpp"
#include "torii/command_service.hpp"
#include "torii/query_service.hpp"
#include "torii/torii_service_handler.hpp"

namespace prot = iroha::protocol;

Expand Down Expand Up @@ -159,10 +156,12 @@ namespace torii {
&ToriiServiceHandler::QueryFindHandler,
queryAsyncService_);
}

void ToriiServiceHandler::assignCommandHandler(
std::unique_ptr<torii::CommandService> command_service) {
command_service_ = std::move(command_service);
}

void ToriiServiceHandler::assignQueryHandler(
std::unique_ptr<torii::QueryService> query_service) {
query_service_ = std::move(query_service);
Expand Down
3 changes: 0 additions & 3 deletions libs/crypto/keys_manager_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,9 @@
*/

#include "keys_manager_impl.hpp"
#include "cryptography/ed25519_sha3_impl/internal/ed25519_impl.hpp"
#include "cryptography/ed25519_sha3_impl/internal/sha3_hash.hpp"
#include "logger/logger.hpp"

#include <fstream>
#include <utility>

using iroha::operator|;

Expand Down
2 changes: 0 additions & 2 deletions libs/generator/generator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@

#include "generator/generator.hpp"

#include <cstdlib>

namespace generator {

int64_t random_number(int64_t min, int64_t max) {
Expand Down
5 changes: 0 additions & 5 deletions libs/validator/domain_name_validator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,6 @@
#include "validator/domain_name_validator.hpp"

#include <boost/spirit/include/qi.hpp>
#include <boost/spirit/include/qi_char_class.hpp>
#include <boost/spirit/include/qi_lexeme.hpp>
#include <boost/spirit/include/qi_optional.hpp>
#include <boost/spirit/include/qi_parse.hpp>
#include <boost/spirit/include/qi_plus.hpp>

namespace validator {
bool isValidDomainName(const std::string &str) {
Expand Down
1 change: 0 additions & 1 deletion test/framework/test_block_generator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
#include "model/commands/create_account.hpp"
#include "model/commands/create_asset.hpp"
#include "model/commands/create_domain.hpp"
#include "model/commands/create_role.hpp"
#include "model/permissions.hpp"

using namespace iroha;
Expand Down

0 comments on commit 9376e19

Please sign in to comment.