Skip to content

Commit

Permalink
Remove unused function/variable (#358)
Browse files Browse the repository at this point in the history
  • Loading branch information
ojousima authored Feb 1, 2024
1 parent fc2b3be commit 2778a3f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 21 deletions.
20 changes: 0 additions & 20 deletions .github/workflows/gh-pages-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,26 +40,6 @@ jobs:
exit 1
fi
- name: Install PVS Studio
run: |
wget -q -O - https://files.viva64.com/etc/pubkey.txt | sudo apt-key add -
sudo wget https://files.viva64.com/etc/viva64.list -O /etc/apt/sources.list.d/viva64.list
sudo apt-get update -qq && sudo apt-get install --assume-yes --quiet gcc-multilib && sudo apt-get install -qq
sudo apt-get install -qq pvs-studio
pvs-studio-analyzer credentials ${{ secrets.PVS_USERNAME }} ${{ secrets.PVS_KEY }}
- name: Run PVS Studio
run: make pvs

# Error if pvs.error has content
- name: Check PVS has no errors
run: |
if [[ $(wc -l <doxygen.error) -gt 1 ]]
then
cat pvs.error
exit 1
fi
- name: Install SSH Client 🔑
uses: webfactory/ssh-agent@v0.5.2
with:
Expand Down
5 changes: 4 additions & 1 deletion src/app_log.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ m_log_output_block; //!< Block read from flash for examination.
TESTABLE_STATIC app_log_config_t m_log_config; //!< Configuration for logging.
TESTABLE_STATIC uint64_t
m_last_sample_ms; //!< Timestamp of last processed sample.
TESTABLE_STATIC uint32_t m_boot_count = 0;


/*
Expand Down Expand Up @@ -127,6 +126,9 @@ static rd_status_t purge_logs (void)
return err_code;
}

#if 0
// Bootcounter is unused, code left for reference.
TESTABLE_STATIC uint32_t m_boot_count = 0;
TESTABLE_STATIC rd_status_t app_log_increment_boot_count (void)
{
rd_status_t err_code = RD_SUCCESS;
Expand All @@ -147,6 +149,7 @@ TESTABLE_STATIC rd_status_t app_log_increment_boot_count (void)
LOGI (msg);
return err_code;
}
#endif

rd_status_t app_log_init (void)
{
Expand Down

0 comments on commit 2778a3f

Please sign in to comment.