From 073aaa905c1e133eaf4dc4679fdb85243dd6c126 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20Ca=C3=B1as=20Vargas?= Date: Mon, 25 Sep 2017 00:43:03 +0200 Subject: [PATCH] Version 17.10.5 --- swad_changelog.h | 3 ++- swad_project.c | 14 -------------- swad_project.h | 1 - 3 files changed, 2 insertions(+), 16 deletions(-) diff --git a/swad_changelog.h b/swad_changelog.h index 356a90680..e41cb22c0 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -252,13 +252,14 @@ /****************************** Public constants *****************************/ /*****************************************************************************/ -#define Log_PLATFORM_VERSION "SWAD 17.10.4 (2017-09-25)" +#define Log_PLATFORM_VERSION "SWAD 17.10.5 (2017-09-25)" #define CSS_FILE "swad17.0.css" #define JS_FILE "swad16.206.3.js" // Number of lines (includes comments but not blank lines) has been got with the following command: // nl swad*.c swad*.h css/swad*.css py/swad*.py js/swad*.js soap/swad*?.h sql/swad*.sql | tail -1 /* + Version 17.10.5: Sep 25, 2017 Removed unused code in projects. (231354 lines) Version 17.10.4: Sep 25, 2017 Changes in form behaviour when editing a project. (231365 lines) Version 17.10.3: Sep 25, 2017 Check permission when editing projects. Check permission when removing a user from a project. (231359 lines) diff --git a/swad_project.c b/swad_project.c index 757d5659e..7e9386cc4 100644 --- a/swad_project.c +++ b/swad_project.c @@ -2468,20 +2468,6 @@ void Prj_RemoveUsrFromProjects (long UsrCod) DB_QueryDELETE (Query,"can not remove user from projects"); } -/*****************************************************************************/ -/******************** Get number of projects in a course *********************/ -/*****************************************************************************/ - -unsigned Prj_GetNumProjectsInCrs (long CrsCod) - { - char Query[256]; - - /***** Get number of projects in a course from database *****/ - sprintf (Query,"SELECT COUNT(*) FROM projects WHERE CrsCod=%ld", - CrsCod); - return (unsigned) DB_QueryCOUNT (Query,"can not get number of projects in course"); - } - /*****************************************************************************/ /******************** Get number of courses with projects ********************/ /*****************************************************************************/ diff --git a/swad_project.h b/swad_project.h index 198352227..ac7cfecc2 100644 --- a/swad_project.h +++ b/swad_project.h @@ -125,7 +125,6 @@ void Prj_RecFormProject (void); void Prj_RemoveCrsProjects (long CrsCod); void Prj_RemoveUsrFromProjects (long UsrCod); -unsigned Prj_GetNumProjectsInCrs(long CrsCod); unsigned Prj_GetNumCoursesWithProjects (Sco_Scope_t Scope); unsigned Prj_GetNumProjects (Sco_Scope_t Scope);